package com;

import com.yuhang.demo.util.PostUtil;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author yuhang
 * @desc
 * @since 2022/11/10
 */
public class Test12 {


    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime createTime = LocalDateTime.of(2022,11,9,11,11,11);

       int n = (int) (now.toLocalDate().toEpochDay() - createTime.toLocalDate().toEpochDay());
        System.out.println(n);
    }
}
